package com.xja.springboot.controller;

import com.xja.springboot.student.Student;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    Logger logger = LoggerFactory.getLogger(Student.class);
    @RequestMapping("index")
    public String  info(){
        logger.info("调用了PageController下的index方法");
        System.out.println("访问页面");
        return "index";
    }


}
